package cn.tpshion.vm.handler;

import cn.tpshion.vm.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class BaseUserHandler implements CommandLineRunner {

    @Resource
    private UserService userService;

    @Override
    public void run(String... args) throws Exception {
        userService.initBaseUser();
    }
}
